<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jQuery选择器获取DOM元素</title>
</head>
<body>
    <ul>
        <li id="first">one</li>
        <li class="second">two</li>
        <li name='third'>three</li>
        <li>four</li>
        <li>five</li>
        <li>six</li>
        <li>seven</li>
        <li>eight</li>
        <li>nine</li>
        <li>ten</li>
    </ul>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
    <script>
        // 全局选择器
        $('*').css("font-size","20px")
        // 标签选择器
        $('li').css('list-style','none')
        // id选择器
        $('#first').css('background-color','red')
        // 类选择器
        $('.second').css('background-color','green')
        // 属性选择器
        $('[name="third"]').css("background-color","blue")
        //结构伪类选择器
        $('li:nth-of-Type(odd)').css("color","orange")
        //总结：CSS里面的选择器怎么写，这里就怎么写
    </script>
</body>
</html>